import { HttpMethod, ContentType } from "../utils/HttpMethod"
import ApiInfo from "../index"

// 登录相关接口
const MenuApi = {
    insert: {
        serviceName: '',
        url: '/menu/insert',
        name: '新增菜单',
        method: HttpMethod.POST,
        contentType: ContentType.JSON,
        param: {}
    } as ApiInfo,

    update: {
        serviceName: '',
        url: '/menu/update',
        name: '修改菜单',
        method: HttpMethod.POST,
        contentType: ContentType.JSON,
        param: {}
    } as ApiInfo,

    selectById: {
        serviceName: '',
        url: '/menu/selectById',
        name: '根据id查询',
        method: HttpMethod.GET,
        contentType: ContentType.JSON,
        param: {}
    } as ApiInfo,

    deleteById: {
        serviceName: '',
        url: '/menu/deleteById',
        name: '根据id删除',
        method: HttpMethod.DELETE,
        contentType: ContentType.JSON,
        param: {}
    } as ApiInfo,

    deleteIdBatch: {
        serviceName: '',
        url: '/menu/deleteBatchByIds',
        name: '根据id批量删除',
        method: HttpMethod.POST,
        contentType: ContentType.JSON,
        param: {}
    } as ApiInfo,

    pageList: {
        serviceName: '',
        url: '/menu/selectPage',
        name: '菜单分页',
        method: HttpMethod.POST,
        contentType: ContentType.JSON,
        param: {}
    } as ApiInfo,

}

export default MenuApi;